import { request } from "@/utils/service"
import { GetImgRequestData } from "./types"

/** 图片地址获取 */
export function getImgApi(params: GetImgRequestData) {
  return request<ApiResponseData<string>>({
    url: "getImg",
    method: "get",
    params
  })
}

/** 图片基础地址 */
export function getBasePath() {
  return request<ApiResponseData<string>>({
    url: "getImg",
    method: "get"
  })
}
